< Prev(J) / Next(K) > / View :

Filename: /text/sbasic/shared/03102600.xhp

(section: isnull) (bookmark: bm_id3155555)
IsNull function
Null value

IsNull 関数
Null 値

IsNull Function [Runtime]
IsNull 関数 [実行時](hd_id3155555.1)

Tests if a Variant contains the special Null value, indicating that the variable does not contain data.
バリアント型変数が、変数値にデータがないことを示す Null という特殊な値であるかを判定します。(par_id3146957.2)

(/section: isnull)

Syntax:
構文:(hd_id3150670.3)

IsNull (Var)
IsNull (Var)(par_id3150984.4)

Return value:
戻り値:(hd_id3149514.5)

Bool
ブール型(par_id3145609.6)

Parameters:
パラメータ:(hd_id3149669.7)

Var: Any variable that you want to test. This function returns True if the Variant contains the Null value, or False if the Variant does not contain the Null value.
Var: 判定する変数。この関数は、バリアント型変数の内容が Null 値である場合に True を返し、Null 値でない場合は False を返します。(par_id3159414.8)

Null - This value is used for a variant data sub type without valid contents.
Null - この値は、有効なコンテンツのないバリエーションデータサブタイプに使用します。(par_idN1062A.)

(embed text/sbasic/shared/00000003.xhp#errorcode : linkinfo)

Error Codes

エラーコード(hd_id3152869.37)

(/embed text/sbasic/shared/00000003.xhp#errorcode)

(embed text/sbasic/shared/00000003.xhp#err5 : linkinfo)

5 Invalid procedure call
5 無効なプロシージャー呼び出しです (par_id3150891.41)

(/embed text/sbasic/shared/00000003.xhp#err5)

Example:
例:(hd_id3153381.9)

Sub ExampleIsNull
Sub ExampleIsNull(par_id3154140.10)

Dim vVar As Variant
Dim vVar As Variant(par_id3145172.11)

msgbox IsNull(vVar)
msgbox IsNull(vVar)(par_id3144760.12)

end sub
end sub(par_id3153970.13)


< Prev / Next >